﻿<%@ page language="C#" masterpagefile="~/Default.master" autoeventwireup="true" inherits="_Default, App_Web_default.aspx.cdcab7d2" meta:resourcekey="resDefaultPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div style="width: 100%;" class="box">
        <div class="topleft">
            <div class="topright">
                <div class="innerright">
                
                    <h4>
                        <asp:Localize ID="lDefaultTitle" meta:resourcekey="resDefaultTitle" runat="server" />
                    </h4>
                </div>
                <div class="innerleft">
                    <h4>
                        <asp:Localize ID="lLinksTitle" meta:resourcekey="resLinksTitle" runat="server" />
                    </h4>
                </div>
                <div class="r">
                </div>
            </div>
        </div>
        <div class="mid">
            <div class="innerleft">
                <div class="links">
                    <a href="PatientInfo.aspx?action=new">
                        <asp:Localize ID="lLinks1" meta:resourcekey="resLinks1" runat="server" />
                    </a>
                    -
                    <a href="questiond.aspx">
                        <asp:Localize ID="lLinks2" meta:resourcekey="resLinks2" runat="server" />
                    </a>
                </div>
            </div>
            <div class="innerright">
                <div class="form">
                   <div class="side-lang">
                        <span>
                            <asp:Localize ID="lSearchLabel1" meta:resourcekey="resSearchLabel1" runat="server" />    
                        </span>
                        <asp:TextBox ID="txtPatientName" CssClass="small-textbox" runat="server" 
                            meta:resourcekey="txtPatientNameResource1" />
                        <span>
                            <asp:Localize ID="lSearchLabel2" meta:resourcekey="resSearchLabel2" runat="server" />    
                        </span>
                        <asp:TextBox ID="txtFileNumber" 
                            CssClass="x-small-textbox en" runat="server" 
                            meta:resourcekey="txtFileIdResource1" />
                    </div>
                    
                    <div class="cssButtonSize-smallest cssButtonSide-search">
                        <div class="cssButton cssButtonColor-blue">
                            <div class="cssButtonOuter">
                                <div class="cssButtonMiddle">
                                    <div class="cssButtonInner">
                                        <asp:Button ID="btnSearch" runat="server" ValidationGroup="search"
                                            OnClick="btnSearch_Click" meta:resourcekey="resBtnSearch" />
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                </div>
            </div>
            <div class="r"></div>
        </div>
         <div class="bottomleft">
            <div class="bottomright">
            </div>
        </div>
    </div>
    
    
    <div class="s"></div>
    
    <div class="langDir">
        <mani:PagingGridView ID="gvPatients" runat="server" VirtualItemCount="-1" PageSize="15"
            AllowPaging="True" AutoGenerateColumns="False" DataKeyNames="ID" 
            OnPageIndexChanging="gvPatients_PageIndexChanging" 
            onrowdeleting="gvPatients_RowDeleting" 
            onsorting="gvPatients_Sorting" onrowdatabound="gvPatients_RowDataBound" 
            AllowSorting="True" meta:resourcekey="gvPatientsResource1">
<PagerSettings Mode="NumericFirstLast"></PagerSettings>
            <Columns>
                <asp:BoundField DataField="Id" meta:resourcekey="resGvPatientC1" SortExpression="Id" />
                <asp:BoundField DataField="PatientName" meta:resourcekey="resGvPatientC2" SortExpression="PatientName" />
                <asp:BoundField DataField="IdNumber" meta:resourcekey="resGvPatientC3" SortExpression="IdNumber" />
                <asp:BoundField DataField="Tel" meta:resourcekey="resGvPatientC4" SortExpression="Tel" />
                <asp:CheckBoxField DataField="VIP" meta:resourcekey="resGvPatientC5" SortExpression="VIP" />
                <asp:TemplateField meta:resourcekey="resGvPatientC6" SortExpression="SubmitDate">
                    <ItemTemplate>
                        <%# MyPersianDate.DateTimeToPersian(Eval("SubmitDate")) %>
                    </ItemTemplate>
                </asp:TemplateField>
                 <asp:TemplateField>
                    <itemtemplate>
                        <a href='PatientInfo.aspx?action=edit&id=<%# Eval("Id") %>'>
                            <img src="img/edit.gif" alt="" style="border:0;" />
                        </a>
                    </itemtemplate>
            </asp:TemplateField>
            <asp:TemplateField>
                <itemtemplate>
                        <asp:LinkButton ID="lbDeletePatient" runat="server" CausesValidation="False" CommandName="Delete">
                                <img src="img/delete.gif" alt="" style="border:0;" />
                        </asp:LinkButton>
                    </itemtemplate>
            </asp:TemplateField>
            <asp:TemplateField>
                <itemtemplate>
                        <a href='visitd.aspx?id=<%# Eval("Id") %>'>
                            <img src="img/stethoscope.gif" alt="" width="25" height="18" style="border:0;" />
                        </a>
                </itemtemplate>
            </asp:TemplateField>
            </Columns>
        </mani:PagingGridView>
    </div>
</asp:Content>
